//
//  YLMonthlyBillCell.m
//  YLFinanceService
//
//  Created by she1323 on 2017/9/25.
//  Copyright © 2017年 she1323. All rights reserved.
//

#import "YLMonthlyBillCell.h"
#import "YLHoldingAssetsModel.h"
@interface YLMonthlyBillCell ()
@property (weak, nonatomic) IBOutlet UILabel *productNameLabel;
@property (weak, nonatomic) IBOutlet UILabel *payCategoryLabel;
@property (weak, nonatomic) IBOutlet UILabel *incomeAmountLabel;

@end

@implementation YLMonthlyBillCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];
    
    // Configure the view for the selected state
}

-(void)setModel:(YLHoldingAssetsModel *)model
{
    _model = model;
    
    _productNameLabel.text = model.productName;
    _payCategoryLabel.text = model.payCategoryText;
    _incomeAmountLabel.text = [NSString stringWithFormat:@"￥%.2f", model.amount];
    
}

+ (NSString *)cellID
{
    return @"YLMonthlyBillCell";
}

@end
